﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Models
{
    public class AreaView : ViewBase
    {
        public AreaView(Area a)
        {
            AreaName = a.AreaName;
            ID = a.ID;
            Description = a.Description;
            Sequence = a.Sequence;
        }

        [Display(Name = "单位名称")]
        public string AreaName { get; set; }
    }

    public class Area:EntityBase
    {
        [Display(Name = "单位名称")]
        public string AreaName { get; set; }

        public List<Warehouse> Warehouses { get; set; }
    }
}